from sqlalchemy.orm import declarative_base


class ModelBaseFactory:
    __model_base = None

    @staticmethod
    def get_model_base() :
        if ModelBaseFactory.__model_base:
            return ModelBaseFactory.__model_base
        else:
            ModelBaseFactory.__model_base = declarative_base()
            return ModelBaseFactory.__model_base


